package cn.buyclss.backend.service;

import cn.buyclss.backend.entity.domain.User;
import cn.buyclss.backend.entity.domain.UserRoleRelation;
import cn.buyclss.backend.entity.support.RespResult;
import cn.buyclss.backend.entity.vo.RegisterUserVO;

import java.util.List;

/**
 * @author: Cecurio
 * @create: 2019-02-19 11:21
 **/
public interface UserService {
    List<User> getAll();

    User getUserByUsernameAndPassword(String username, String password);

    User getUserByUsername(String username);

    UserRoleRelation getRolesByUserId(Integer id);

    RespResult addOne(RegisterUserVO userVO);
}
